﻿using Medianamik.DummyWebSite.Data;
using Medianamik.UI.Web.Approbation;
using Medianamik.UI.Web.Approbation.Presentation.Presenters;
using Medianamik.UI.Web.Membership.Presenters;
using Medianamik.UI.Web.Membership.Views;
using Medianamik.UI.Web.MVP.Presentation;
using Medianamik.UI.Web.TypeList;
using Medianamik.UI.Web.TypeList.Presentation.Presenters;

namespace Medianamik.DummyWebSite.Container.Registries
{
    public class PresentersRegistry : StructureMap.Configuration.DSL.Registry
    {
        public PresentersRegistry()
        {
            ForRequestedType<ModulePresenter<IUserList>>()
                .TheDefaultIsConcreteType<UserListPresenter<UserProfile>>();

            ForRequestedType<ModulePresenter<IApprobationList>>()
                .TheDefaultIsConcreteType<ApprobationListPresenter>();

            ForRequestedType<ModulePresenter<ITypeList>>()
                .TheDefaultIsConcreteType<TypeListPresenter>();
        }
    }
}
